package com.dfrobot.demo.domain.entity;

import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "category")
public class Category {
    @Id
    @Column(name = "category_id")
    private Integer categoryId;

    @Id
    @Column(name = "parent_id")
    private Integer parentId;

    private String image;

    private Boolean top;

    private Integer column;

    @Column(name = "sort_order")
    private Integer sortOrder;

    private Boolean status;

    @Column(name = "date_added")
    private Date dateAdded;

    @Column(name = "date_modified")
    private Date dateModified;

    @Column(name = "relate_id")
    private Integer relateId;

    private String link;
}